<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.3"/>
<title>Duye SDK User Wizard: duye::NetServer Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">Duye SDK User Wizard
   &#160;<span id="projectnumber">V1.0.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.3 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li><a href="examples.html"><span>Examples</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Macros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Pages</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>duye</b></li><li class="navelem"><a class="el" href="classduye_1_1_net_server.html">NetServer</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="classduye_1_1_net_server-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">duye::NetServer Class Reference<span class="mlabels"><span class="mlabel">abstract</span></span></div>  </div>
</div><!--header-->
<div class="contents">

<p>network server abstract class  
 <a href="classduye_1_1_net_server.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="duye__net__server_8h_source.html">duye_net_server.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for duye::NetServer:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classduye_1_1_net_server.png" usemap="#duye::NetServer_map" alt=""/>
  <map id="duye::NetServer_map" name="duye::NetServer_map">
<area href="classduye_1_1_hcn_server.html" alt="duye::HcnServer" shape="rect" coords="0,56,108,80"/>
<area href="classduye_1_1_tcp_server.html" title="tcp server socket class" alt="duye::TcpServer" shape="rect" coords="118,56,226,80"/>
<area href="classduye_1_1_udp_server.html" title="udp server socket class" alt="duye::UdpServer" shape="rect" coords="236,56,344,80"/>
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:afec7ec3cb2eaadaf5d2715959ea47011"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="afec7ec3cb2eaadaf5d2715959ea47011"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>NetServer</b> (const char *<a class="el" href="classduye_1_1_net_server.html#a843c370dafc3da823298f73762aa0087">serverName</a>)</td></tr>
<tr class="separator:afec7ec3cb2eaadaf5d2715959ea47011"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa8c00e9883e8094f9348aeb49e539005"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classduye_1_1_net_server.html#aa8c00e9883e8094f9348aeb49e539005">startServer</a> ()=0</td></tr>
<tr class="memdesc:aa8c00e9883e8094f9348aeb49e539005"><td class="mdescLeft">&#160;</td><td class="mdescRight">start network server  <a href="#aa8c00e9883e8094f9348aeb49e539005"></a><br/></td></tr>
<tr class="separator:aa8c00e9883e8094f9348aeb49e539005"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a39bc762d23649f4dace78cafbbda7c5c"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classduye_1_1_net_server.html#a39bc762d23649f4dace78cafbbda7c5c">stopServer</a> ()=0</td></tr>
<tr class="memdesc:a39bc762d23649f4dace78cafbbda7c5c"><td class="mdescLeft">&#160;</td><td class="mdescRight">stop network server  <a href="#a39bc762d23649f4dace78cafbbda7c5c"></a><br/></td></tr>
<tr class="separator:a39bc762d23649f4dace78cafbbda7c5c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaa49b9eeb3bc232654dd3080652dc4c6"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aaa49b9eeb3bc232654dd3080652dc4c6"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classduye_1_1_net_server.html#aaa49b9eeb3bc232654dd3080652dc4c6">setServerName</a> (const std::string &amp;serverNane)</td></tr>
<tr class="memdesc:aaa49b9eeb3bc232654dd3080652dc4c6"><td class="mdescLeft">&#160;</td><td class="mdescRight">set server name  [in] serverName : server name <br/></td></tr>
<tr class="separator:aaa49b9eeb3bc232654dd3080652dc4c6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a843c370dafc3da823298f73762aa0087"><td class="memItemLeft" align="right" valign="top">const std::string &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classduye_1_1_net_server.html#a843c370dafc3da823298f73762aa0087">serverName</a> ()</td></tr>
<tr class="memdesc:a843c370dafc3da823298f73762aa0087"><td class="mdescLeft">&#160;</td><td class="mdescRight">get server name  <a href="#a843c370dafc3da823298f73762aa0087"></a><br/></td></tr>
<tr class="separator:a843c370dafc3da823298f73762aa0087"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae6c124a4acadbe22e0b2da31a0f67206"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae6c124a4acadbe22e0b2da31a0f67206"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classduye_1_1_net_server.html#ae6c124a4acadbe22e0b2da31a0f67206">setServerStatus</a> (const ServerStatus status)</td></tr>
<tr class="memdesc:ae6c124a4acadbe22e0b2da31a0f67206"><td class="mdescLeft">&#160;</td><td class="mdescRight">set server status  [in] status : server status <br/></td></tr>
<tr class="separator:ae6c124a4acadbe22e0b2da31a0f67206"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa858aa17f95504b5c18707a39fe944a7"><td class="memItemLeft" align="right" valign="top">ServerStatus&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classduye_1_1_net_server.html#aa858aa17f95504b5c18707a39fe944a7">serverStatus</a> ()</td></tr>
<tr class="memdesc:aa858aa17f95504b5c18707a39fe944a7"><td class="mdescLeft">&#160;</td><td class="mdescRight">get server status  <a href="#aa858aa17f95504b5c18707a39fe944a7"></a><br/></td></tr>
<tr class="separator:aa858aa17f95504b5c18707a39fe944a7"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>network server abstract class </p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a843c370dafc3da823298f73762aa0087"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const std::string&amp; duye::NetServer::serverName </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>get server name </p>
<dl class="section return"><dt>Returns</dt><dd>server name </dd></dl>

</div>
</div>
<a class="anchor" id="aa858aa17f95504b5c18707a39fe944a7"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">ServerStatus duye::NetServer::serverStatus </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>get server status </p>
<dl class="section return"><dt>Returns</dt><dd>server status </dd></dl>

</div>
</div>
<a class="anchor" id="aa8c00e9883e8094f9348aeb49e539005"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool duye::NetServer::startServer </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>start network server </p>
<dl class="section return"><dt>Returns</dt><dd>true/false </dd></dl>

<p>Implemented in <a class="el" href="classduye_1_1_hcn_server.html#aac0751f922f3a961a5784ab1b81c71dc">duye::HcnServer</a>, <a class="el" href="classduye_1_1_tcp_server.html#a73b9619bca69ad73298f765857178cb1">duye::TcpServer</a>, and <a class="el" href="classduye_1_1_udp_server.html#a1679cf6b3582270492e18bb683ac81f5">duye::UdpServer</a>.</p>

</div>
</div>
<a class="anchor" id="a39bc762d23649f4dace78cafbbda7c5c"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool duye::NetServer::stopServer </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>stop network server </p>
<dl class="section return"><dt>Returns</dt><dd>true/false </dd></dl>

<p>Implemented in <a class="el" href="classduye_1_1_hcn_server.html#a762bc71b122d78dc903be06be1cc5f9a">duye::HcnServer</a>, <a class="el" href="classduye_1_1_tcp_server.html#a5046105d06cfdddae09b0dab2be4ad87">duye::TcpServer</a>, and <a class="el" href="classduye_1_1_udp_server.html#a7e06bf397f1b1716c737fd59747d23fe">duye::UdpServer</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>Z:/duye/src/duyebase/net/<a class="el" href="duye__net__server_8h_source.html">duye_net_server.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Mon Feb 27 2017 15:19:16 for Duye SDK User Wizard by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.3
</small></address>
</body>
</html>
